package com.lianxueda.drawing.mapper;

import com.lianxueda.drawing.domain.pojo.Admins;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
* @author 29264
* @description 针对表【admins(管理员表)】的数据库操作Mapper
* @createDate 2024-08-20 11:52:12
* @Entity com.lianxueda.drawing.domain.pojo.Admins
*/
@Mapper
public interface AdminsMapper extends BaseMapper<Admins> {
    @Update("UPDATE admins SET avatar = #{avatarUrl} WHERE id = #{id}")
    void updateAvatar(@Param("id") Integer id, @Param("avatarUrl") String avatarUrl);
}




